#include "Kernel.h"
#include <iostream>
#include <stdlib.h>
#include <stdio.h>

using namespace std;

/* symlink command */

int main(int argc, char **argv)
{
  Kernel::initialize();

  if (argc != 3)
    {
      fprintf (stderr, "usage: symlink <new path> <old path>\n");
      exit(1);
    }

  const char* newPath = argv[1];
  const char* oldPath = argv[2];

  int exitVal = Kernel::symlink(argv[1], argv[2]);

  if (exitVal != 0) {
    cout << "Error! Or something..." << endl;
    exit(exitVal);
  }

  Kernel::Exit(0);
}
